package com.songlanyun.modules.marketing.firstorder.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.marketing.firstorder.entity.FirstOrderActivity;
import com.songlanyun.modules.marketing.firstorder.model.dto.FirstOrderActivityDTO;

import java.util.List;
import java.util.Map;

/**
 * 首单活动
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-23 16:29:49
 */
public interface FirstOrderActivityService extends IService<FirstOrderActivity> {

    PageUtils queryPage(Map<String, Object> params, Long shopId);

    void saveOrder(FirstOrderActivityDTO dto);

    /**
     * @param shopId
     * @return
     */
    FirstOrderActivity shopList(Long shopId);

    /**
     * 查询该店铺下的首单优惠 -- 查一条
     *
     * @param shopId
     * @return
     */
    FirstOrderActivity getByShopId(Long shopId, boolean isThrow);

    FirstOrderActivity getById(Long id, boolean isThrow);

    FirstOrderActivity getApiByShopId(Long shopId, boolean isThrow);
}

